//
//  ImageLoader.h
//  iFlickr
//
//  Created by 张 霄鹤 on 09-9-15.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ImageLoaderDelegate;


@interface ImageLoader : NSObject {
	id<ImageLoaderDelegate> delegate;
}

@property(nonatomic,retain) id<ImageLoaderDelegate> delegate;

/**
 * 通过地址，加载图像
 */
-(UIImage *)loadImageWithURL:(NSURL *)url;

@end

/**
 * 图片加载Delegate
 */
@protocol ImageLoaderDelegate <NSObject>

@optional

/**
 * 图片加载成功
 */
-(void)imageLoadFinished;

/**
 * 图片加载失败
 */
-(void)imageLoadFail;

@end

